<br/><br/><b>Daftar Ruangan</b>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'ruangans-grid',
    'dataProvider'=>$model->search(),
    'filter'=>$model,
    'columns'=>array(
            array(
                'header' => 'Nama',
                'value' => 'CHtml::link($data->name, "#map", array("onclick" => "MAP.goto(".$data->floor_id.",".$data->id.",false)"))',
                'type' => 'raw'
            ),
            array(
                'header' => 'Tipe Ruangan',
                'value' => '$data->typeRuangan->name',
            ),
            array(
                'header' => 'Gedung',
                'filter' => array(1=>"a", 2=>"v"),
                'value' => '$data->floor->building->name',
            ),
            array(
                'header' => 'Lantai',
                'value' => '$data->floor->floor_number',
            ),
            'capacity',
        ),
));

?>